home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
snpd9611.zip
/
SORTKEY.H
< prev
next >
Wrap
Text File
|
1996-11-24
|
11KB
|
281 lines
/* +++Date last modified: 12-Nov-1996 */
#ifndef SORTKEY_H_
#define SORTKEY_H_
/**************************************************************************
* @(#)sortkey.h
* @(#) This file contains examples of two sort order tables:
* @(#) CaseMatch & CaseIgnore
* @(#) These tables are used for sorting, comparing and case converting
* @(#) using non-ASCII charactersets
*
* Each table containes 256 elements. The sort value of a charater is
* defined as the value in the characters position in the table.
*
* EXAMPLE:
* The character é is to be sorted as an ordinary e
* The é has the ASCII value 130 (82h). On position 130 in the
* table you will find an e.
*
* - |130 |140 <- ASCII decimal value
* - ÇüéâäàåçêëèïîìÄÅÉ <- Standard ASCII sort sequence
* "Cyea{a}ceeeiii[]E <- Local sort sequence
*
*
* Please note the C syntax using \ in combination with ' " and \ :
* \", \', \\
*
*
*=========================================================================
*
* Danish/Norwegan sort order:
* special mapping:
* ü = y Ü = Y
* w = v W = V
* æ ä = { Æ Ä = [
* ¢ ö = | ¥ ö = \\
* å = } Å = ]
*
* diacritical charaters to ordinary characters:
* é è ê ë = e
* á à â = a (note ä = æ sorted as { )
* í ì î ï = i
* ó ò ô = o (note ö = ¢ sorted as } )
* ú ù û = u (note ü = y)
*
* Sorting cent and yen characters might sound strange to you, but the
* Norwegan and danish character set contains tree extra characters:
*
* æ Æ [ε:] a combination of a & e
* ¢ ¥ [φ┴:] (o slash like φ ) a combination of o & e
* å Å [å:] a sort of double a
*
* These characters follow A-Z in order Æ, ¥, Å and a-z in order æ, ¢, å
* I swedish the characters ä & ö are used instead of æ and ¢. Their sort
* order is A-Z, Å, Ä, Ö
*
*
*
*=========================================================================
*
* The following examples of other sort orders are picked up from:
* TDE, the Thomson-Davis Editor
* Version 2.10
* November 13, 1992
* Frank Davis
*
* Frank Davis claimes, that Pierre Jelenc is the creator of these examples.
*
*
* Standard ASCII sort sequence:
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'abcdefghijkl
mnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕
╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■
*
* English/French/Esperanto sort order: map accents to unaccented
*
*************************** ******
* CaseMatch
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'abcdefghijkl
mnopqrstuvwxyz{|}~CueaaaaceeeiiiAAEaAooouuyOU¢£¥₧ƒaiounN
*
* CaseIgnore
!"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_'abcdefghijkl
mnopqrstuvwxyz{|}~cueaaaaceeeiiiaaeaaooouuyou¢£¥₧ƒaiounn
*
*
* Swedish/Finnish sort order: map ü = y, w = v, and the accents
*
* CaseMatch
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVVXYZ[\]^_'abcdefghijkl
mnopqrstuvvxyz{|}~CyeaaaaceeeiiiAAEaAooouuyOY¢£¥₧ƒaiounN
*
* CaseIgnore
!"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvvxyz[\]^_'abcdefghijkl
mnopqrstuvvxyz{|}~cyeaaaaceeeiiiaaeaaooouuyoy¢£¥₧ƒaiounn
*
*
* German sort order: slide everything down for ä, ö, ü, ß, and the accents
* see asterisks for changes ====> *
* * * * * * * * * * **
*
* Standard ASCII sort sequence:
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'abcdefghijkl
mnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕
╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■
*
* CaseMatch
!"#$%&'()*+,-./0123456789:;<=>?@ACDEFGHIJKLMNOPRSTUVWYZ[\]^_'abcdfghijklmnop
qrsuvwxz{}~ÇüéâäàåD|ideddgiiimmmBAFdAsts{{ÇQX£¥₧ƒádms{rOº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣
║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßy
* see asterisks for changes ====> *
* * * * * * * * * * **
*
* CaseIgnore
!"#$%&'()*+,-./0123456789:;<=>?@dfghijklmnopqrsuvwxz{}~Çü^_'abcdfghijklmnop
qrsuvwxz{}~Çüéâäàåg|ideddgiiimmmedidAsts{{Çt|£¥₧ƒádms{rrº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣
║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßy
* see asterisks for changes ====> *
* * * * * * * * * * **
*
*
******************************************************************************
*@(#)1993-06-10/Erik Bachmann
******************************************************************************/
const unsigned char *CaseMatch =
/*
Standard ASCII sort sequence:
- |00 |05 |10 |15
- \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F
*/ "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"
/*
- |16 |20 |25 |30
- \x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F
*/ "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F"
/*
- |32 |40 |50 |60 |70
- !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO
*/ " !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO"
/*
- |80 |90 |100 |110 |120
- PQRSTUVWXYZ[\\]^_\'abcdefghijklmnopqrstuvwxyz{|}~
*/ "PQRSTUVVXYZ[\\]^_\'abcdefghijklmnopqrstuvvxyz{|}~"
/*
- |130 |140 |150 |160 |170
- ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿ ÖÜ¢£ ¥₧ƒáíóúñѪº¿⌐¬½¼¡«»
*/ "Cyea{a}ceeeiii[]E{[o|ouuy\\Y|£\\₧ƒaiounNªº¿⌐¬½¼¡«»"
/*
- |180 |190 |200 |210 |220
- ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀
*/ "░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀"
/*
- |230 |240 |250
- αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xFF
*/ "αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xFF";
/*====================================================================*/
const unsigned char *CaseIgnore =
/*
Standard ASCII sort sequence:
- |00 |05 |10 |15
- \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F
*/ "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"
/*
- |16 |20 |25 |30
- \x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F
*/ "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F"
/*
- |32 |40 |50 |60 |70
- !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO
*/ " !\"#$%&\'()*+,-./0123456789:;<=>?@abcdefghijklmno"
/*
- |80 |90 |100 |110 |120
- PQRSTUVWXYZ[\\]^_\'abcdefghijklmnopqrstuvwxyz{|}~
*/ "pqrstuvvxyz[\\]^_\'abcdefghijklmnopqrstuvvxyz{|}~"
/*
- |130 |140 |150 |160 |170
- ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿ ÖÜ¢£ ¥₧ƒáíóúñѪº¿⌐¬½¼¡«»
*/ "cyea{a}ceeeiii{}e{{o|ouuy|y|£|₧ƒaiounnªº¿⌐¬½¼¡«»"
/*
- |180 |190 |200 |210 |220
- ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀
*/ "░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀"
/*
- |230 |240 |250
- αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xFF
*/ "αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xFF";
/*====================================================================*/
const char *CaseUpper =
/*
Standard ASCII sort sequence:
- |00 |05 |10 |15
- \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F
*/ "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"
/*
- |16 |20 |25 |30
- \x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F
*/ "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F"
/*
- |32 |40 |50 |60 |70
- !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO
*/ " !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO"
/*
- |80 |90 |100 |110 |120
- PQRSTUVWXYZ[\\]^_\'abcdefghijklmnopqrstuvwxyz{|}~
*/ "PQRSTUVWXYZ[\\]^_\'ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~"
/*
- |130 |140 |150 |160 |170
- ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»
*/ "ÇÜÉ╥Ä╖ÅÇ╥╙╘╪╫▐ÄÅÉÆÆΓÖπΩδYÖÜ¥£¥₧ƒ╡╓αΘÑѪº¿⌐¬½¼¡«»"
/*
- |180 |190 |200 |210 |220
- ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀
*/ "░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╟╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀"
/*
- |230 |240 |250
- αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xFF
*/ "αßΓπσσµτΦΘΩδφφε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xFF";
/*====================================================================*/
const char *CaseLower =
/*
Standard ASCII sort sequence:
- |00 |05 |10 |15
- \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F
*/ "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"
/*
- |16 |20 |25 |30
- \x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F
*/ "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F"
/*
- |32 |40 |50 |60 |70
- !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO
*/ " !\"#$%&\'()*+,-./0123456789:;<=>?@abcdefghijklmno"
/*
- |80 |90 |100 |110 |120
- PQRSTUVWXYZ[\\]^_\'abcdefghijklmnopqrstuvwxyz{|}~
*/ "pqrstuvwxyz[\\]^_\'abcdefghijklmnopqrstuvwxyz{|}~"
/*
- |130 |140 |150 |160 |170
- ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»
*/ "çüéâäàåçêëèïîìäåéææôöòûùÿöü¢£¢₧ƒáíóúññªº¿⌐¬½¼¡«»"
/*
- |180 |190 |200 |210 |220
- ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀
*/ "░▒▓│┤áâà╕╣║╗╝╜╛┐└┴┬├─┼╞╞╚╔╩╦╠═╬╧╨╤êëè╒íîï┘┌█▄▌ì▀"
/*
- |230 |240 |250
- αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xFF
*/ "óßôòΣΣµΦΦúûù∞∞ε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xFF";
#endif /* SORTKEY_H_ */